package com.seguriapp.entities;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * Represents a User entity.
 * 
 * @author Tania Gonzales(taniadgv@gmail.com)
 */
public class User implements Serializable {

  private static final long serialVersionUID = -32435165889577406L;

  private Long id;
  private String username;
  private String password;
  private boolean administrator;
  private Date lastDateLoggedIn;
  private List<Long> entitiesList;

  public User(final Long id, final String username, final boolean administrator, final Date lastDateLoggedIn, final List<Long> entitiesList) {
    this.username = username;
    this.administrator = administrator;
    this.lastDateLoggedIn = lastDateLoggedIn;
    this.entitiesList = entitiesList;
    this.id = id;
  }

  public User() {
  }

  public Long getId() {
    return id;
  }

  public void setId(final Long id) {
    this.id = id;
  }

  public String getUsername() {
    return username;
  }

  public void setUsername(final String username) {
    this.username = username;
  }

  public String getPassword() {
    return password;
  }

  public void setPassword(final String password) {
    this.password = password;
  }

  public boolean isAdministrator() {
    return administrator;
  }

  public void setAdministrator(final boolean administrator) {
    this.administrator = administrator;
  }

  public Date getLastDateLoggedIn() {
    return lastDateLoggedIn;
  }

  public void setLastDateLoggedIn(final Date lastDateLoggedIn) {
    this.lastDateLoggedIn = lastDateLoggedIn;
  }

  public List<Long> getEntitiesList() {
    return entitiesList;
  }

  public void setEntitiesList(final List<Long> entitiesList) {
    this.entitiesList = entitiesList;
  }

}
